﻿<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="envioEmailAdjun.aspx.cs" Inherits="WebContratos.envioEmailAdjun" %>

<%@ Register Assembly="DevExpress.Web.ASPxEditors.v10.2, Version=10.2.3.0, Culture=neutral, PublicKeyToken=b88d1754d700e49a"
    Namespace="DevExpress.Web.ASPxEditors" TagPrefix="dx" %>

<%@ Register Assembly="DevExpress.Web.ASPxHtmlEditor.v10.2, Version=10.2.3.0, Culture=neutral, PublicKeyToken=b88d1754d700e49a"
    Namespace="DevExpress.Web.ASPxHtmlEditor" TagPrefix="dx" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html xmlns="http://www.w3.org/1999/xhtml" >
<head id="Head1" runat="server">
    <title>Adjuntar Archivo para Administrador</title>
    
     <script type="text/javascript">
    // <![CDATA[
        function OnCommandExecute(s, e) {
            var value = e.parameter;
            switch (e.commandName) {
                case "InsertSmiley":
                    InsertSmiley(value);
                    break;
                case "InsertSpecialSymbol":
                    InsertSpecialSymbol(value);
                    break;
            }
        }
        function InsertSmiley(value) {
            var selection = HtmlEditor.GetSelection();
            var valueInfo = value.split("#");
            selection.SetHtml("<img style='margin-bottom:-2px;' src='../Content/Smilies/" + valueInfo[0] + ".png' alt='" + valueInfo[2] + "' title='" + valueInfo[1] + "' />");
        }
        function InsertSpecialSymbol(symbol) {
            var selection = HtmlEditor.GetSelection();
            selection.SetHtml(symbol);
        }
        
        function abrirPopup(c_campo1, c_campo2, valor)
		{
            
           
		  campo1 = document.getElementById(c_campo1).value;
		  campo2 = document.getElementById(c_campo2).value;
		 
		  nomCampo1 = c_campo1;		  
		  nomCampo2 = c_campo2;
		  
		  var longiBusc = 0;
		  var longiBusc1 = 0;
		  
		  if(valor==1)
		  {
		    obtieneListaValores(campo1, campo2, 'consultaEmpleados');			
		  }
		}
        
        var obj;
              function getXMLHTTPRequest() 
              {
                 var xRequest=null;
                if (window.XMLHttpRequest) {
                xRequest=new XMLHttpRequest();
                }else if (typeof ActiveXObject != "undefined"){
                  xRequest=new ActiveXObject("Microsoft.XMLHTTP");
                }
                  return xRequest;
                }
            function obtieneListaValores(campo1, campo2, campo3)
            {
                obj=getXMLHTTPRequest();
                if(obj!=null)
                {
                    obj.onreadystatechange = ProcessResponse;
                    obj.open("GET", "Srvlets/ProcessedPage.aspx?campo1="+campo1+"&campo2="+campo2+"&campo3="+campo3,  true);
                    obj.send(null);         
                }
                return false;
            }

            function ProcessResponse()
            {
                var basePath = "";
                
                if(obj.readyState == 4)
                {
                    if(obj.status == 200)
                    {
                        var retval=obj.responseText;  
                        
                        window.open(basePath+'General/encontrarDatos.aspx?exP='+navigator.appName.indexOf("Microsoft")+'&nomCampo1='+nomCampo1+'&nomCampo2='+nomCampo2+'&tipo=1','Consulta','width=590px,height=300px');

                    }
                    else
                    {
                        alert("Error retrieving data!" );
                    }   
                }
            }
            
    // ]]> 
    </script>



    <style type="text/css">
        .style2
        {
            height: 334px;
        }
        .style3
        {
            width: 798px;
        }
        </style>


<style type="text/css">
                
                    .style6{ 
                font-size:11px; font:Tahoma;
                }

                .cajaTexto
                {
                font-size:11px; font:Tahoma;
                border-left:#6699CC 1px solid; border-bottom:#4167B0 1px solid;
                border-right:#6699CC 1px solid; border-top:#4167B0 1px solid;  
                }
                
                .cajaTextoInactivo
                {
                font-size:11px; font:Tahoma;
                border-left:#C5C5C5 1px solid; border-bottom:#C5C5C5 1px solid;
                border-right:#C5C5C5 1px solid; border-top:#C5C5C5 1px solid; background:#EAF3FF; 
                }
                
                .cajaTextoActivo
                {
                font-size:11px; font:Tahoma;
                border-left:#FFB74C 1px solid; border-bottom:#FFB74C 1px solid;
                border-right:#FFB74C 1px solid; border-top:#FFB74C 1px solid;  
                }

                #Dgradiente {

	                background-image: -webkit-gradient(linear,left bottom,left top,color-stop(0, #CEDCF8),color-stop(1, #E5EEFC));
	                }
       
	         .btnCrm
	         { width:84px; height:22px; 
	           border-left:#6699CC thin solid; border-bottom:#4167B0 thin solid;
	           border-right:#6699CC thin solid; border-top:#4167B0 thin solid; 
	               font-size: 11px;
                background-image: -webkit-gradient(linear,left bottom,left top,color-stop(0, #D0E5F7),color-stop(1, #B9D5EF));
            }
        	 
	         #button:active { 
	        position:relative; 
	        top:1px /* or more */ 
	        } 
            
            .Estilo3 {color: #000000; font-size: 11px; }
        
        .style7
        {
        }
        .style8
        {
            width: 44px;
        }
        .style9
        {
            width: 28px;
        }
        .style10
        {
            width: 323px;
        }
        .style11
        {
            width: 159px;
        }
        
        </style>

</head>
<body>
    <form id="form1" runat="server">
    <div>

<table bgcolor="#EAF3FF"  
                       style=" border: 1px solid #b0c2d0; width: 280px; height:91px; 
                        	  font-size: 11px; font-family: Tahoma; " id="idToolbar">
                  <tr >
                    <td class="style3">
						<table style="width: 280px">
						                      <tr>
                        <td><strong><span class="style6">
                            <asp:Label ID="lblEmailDe" 
                                runat="server" Text="contratos@electricaguayaquil.gob.ec"></asp:Label></span></strong></td>
                        <td >     
                            &nbsp;</td>
                        <td>&nbsp;</td>
                        <td> 
                        <asp:LinkButton ID="LinkButton2" runat="server" Visible="False">Mostrar CC: y CCO:</asp:LinkButton>
                                                  </td>
						
                      </tr>
                      <tr>
                         <td>&nbsp;
                         </td>
                         <td>
                         </td>
                      </tr>
                                              <tr>
                                                <td colspan="4">
                                                    <asp:FileUpload ID="FileUpload1" runat="server" Width="280px" 
                                                        CssClass="cajaTexto" />
                                                  </td>
                                              </tr>
                         
                                              <tr>
                                                <td colspan="4">
                <asp:Button ID="btnCargar" runat="server" Text="Cargar" CssClass="btnCrm" onclick="btnCargar_Click" />
                                                  </td>
                                              </tr>
                         
                    </table>
                    
                    </td>
                    </tr>
        </table>
    
    </div>
    </form>
</body>
</html>
